package org.example.service;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.example.domain.Food;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional

public interface FoodService {
    public boolean save(Food food);
    public boolean update(Food food);

    public boolean delete(Integer id);

    public Food findById(Integer id);

    public List<Food> findAll();

}
